using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MercuryParticleEngine.Emitters;

namespace MercuryParticleEngine.Modifiers
{
    class SortOfRandomColorModifier : Modifier
    {
        private Random _rnd;
        private String _colorOption;

        public SortOfRandomColorModifier(String color)
        {
            _colorOption = color;

            _rnd = new Random();
        }

        public override void ParticleSpawned(GameTime time, Particle spawn)
        {
            spawn.Color.X = (float)_rnd.NextDouble();
            spawn.Color.Y = (float)_rnd.NextDouble();
            spawn.Color.Z = (float)_rnd.NextDouble();
        }
    }
}
